#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName :cp2_2.23.py
# @Time     :2023/9/3 13:49
# @Author   :Ash
from collections import deque

if __name__ == "__main__":
    dq = deque(range(10), maxlen=10)
    print(dq)
    dq.rotate(3)
    print(dq)
    dq.rotate(-4)
    print(dq)
    dq.appendleft(-1)
    print(dq)
    dq.extend([11, 22, 33])
    print(dq)
    dq.extendleft([10, 20, 30, 40])
    print(dq)
